package com.sn.author.domain.dto;

import com.sn.author.converter.OutputConverter;
import com.sn.author.domain.entity.CollectionRecord;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("采集任务列表DTO")
public class CollectionDTO implements OutputConverter<CollectionDTO, CollectionRecord> {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("采集任务ID")
    private Long taskId;

    @ApiModelProperty("采集数量")
    private Integer number;

    @ApiModelProperty("开始时间")
    private String startTime;

    @ApiModelProperty("状态 0(等待) 10(执行) 20(完成) 30(失败) ")
    private Integer status;

    @ApiModelProperty("结束时间")
    private String endTime;


    @Override
    public void customConverter(CollectionDTO collectionDTO, CollectionRecord collectionRecord) {

    }
}
